function generateRandomCode(length: number) {
    const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    let result = '';
    for (let i = 0; i < length; i++) {
        const randomIndex = Math.floor(Math.random() * characters.length);
        result += characters.charAt(randomIndex);
    }
    return result;
}

export namespace tourGroupUtils {

    //创建团号
    export function createTourGroupNumber(prefix?: string) {
        return (prefix || "") + generateRandomCode(5) ;
    }


}